package com.hzvtc.myproject.exception;

import lombok.Getter;

@Getter
public class HttpException extends RuntimeException {

    private static final long serialVersionUID = 6771315879176421659L;

    private final Integer code;

    /**
     * 构造一个Http异常对象
     *
     * @param code    异常的错误码
     * @param message 异常的错误信息
     */
    public HttpException(Integer code, String message) {
        super(message);
        this.code = code;
    }
}
